:root {
  --dbc-font-size: 13px;
  --dbc-table-width: 100%;
  --dbc-table-height: 100px;
  --dbc-can-messages-table-height: 150px;
  --dbc-can-signals-table-height: 200px;
  /*--dbc-can-signal-preview-height: 300px;*/
  --dbc-spacing: 8px;
  --dbc-border-size: 1px;
  --dbc-border-radius: 3px;
  --dbc-radio-size: 12px;
  
  /* VSCode theme integration */
  --dbc-color-bg: var(--vscode-editor-background, #1e1e1e);
  --dbc-color-main: var(--vscode-focusBorder, #007acc);
  --dbc-color-main-light: var(--vscode-button-hoverBackground, #0e639c);
  --dbc-color-alternate: var(--vscode-textLink-foreground, #4daafc);
  --dbc-color-faded: var(--vscode-descriptionForeground, #cccccc99);
  --dbc-color-faded-light: var(--vscode-editorWidget-background, #252526);
  --dbc-color-faded-medium: var(--vscode-editorWidget-border, #454545);
  --dbc-color-input-invalid: var(--vscode-inputValidation-errorBackground, #5a1d1d);
  --dbc-color-text: var(--vscode-editor-foreground, #cccccc);
  --dbc-color-text-light: var(--vscode-button-foreground, #ffffff);
  --dbc-color-error: var(--vscode-errorForeground, #f85149);
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("https://www.csselectronics.com/cdn/shop/files/JetBrainsMono-Regular.woff2")
      format("woff2"),
    url("https://www.csselectronics.com/cdn/shop/files/JetBrainsMono-Regular.woff")
      format("woff"),
    url("https://www.csselectronics.com/cdn/shop/files/JetBrainsMono-Regular.ttf")
      format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  display: flex;
  font-family: var(--vscode-editor-font-family, "JetBrains Mono", "Consolas", "Monaco", "Courier New", monospace);
  font-size: var(--dbc-font-size);
  font-weight: var(--vscode-editor-font-weight, 400);
  justify-content: center;
  background-color: var(--dbc-color-bg);
  color: var(--dbc-color-text);
  margin: 0;
  padding: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#dbc-root {
  max-width: var(--dbc-table-width);
  width: var(--dbc-table-width);
  color: var(--dbc-color-text);
}

.dbc-bold {
  font-weight: bold;
}

.dbc-colored {
  color: var(--dbc-color-main);
}

.dbc-hidden {
  display: none !important;
}

.dbc-invisible {
  opacity: 0 !important;
  visibility: hidden !important;
}

.dbc-header {
  display: flex;
  gap: calc(var(--dbc-spacing) * 2 + var(--dbc-border-size) * 2);
}

.dbc-header-button {
  background-color: var(--dbc-color-main);
  border: none;
  border-radius: var(--dbc-border-radius);
  color: var(--dbc-color-text-light);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: calc(var(--dbc-spacing) * 0.5) var(--dbc-spacing);
  text-align: left;
  width: 128px;
}

.dbc-table-header {
  align-items: center;
  background-color: var(--dbc-color-bg);
  border: var(--dbc-border-size) solid var(--dbc-color-main);
  border-bottom: none;
  border-top-left-radius: var(--dbc-border-radius);
  border-top-right-radius: var(--dbc-border-radius);
  color: var(--dbc-color-main);
  display: inline-flex;
  gap: calc(var(--dbc-spacing) * 2);
  justify-content: space-between;
  margin-bottom: calc(var(--dbc-border-size) * -1);
  margin-top: calc(var(--dbc-spacing) * 2);
  padding: var(--dbc-spacing) calc(var(--dbc-spacing) * 2);
  width: 240px;
}

.dbc-table-header-name {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.dbc-selected-message-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dbc-table-header-buttons {
  display: flex;
  gap: var(--dbc-spacing);
}

.dbc-table-header-buttons > * {
  cursor: pointer;
  font-size: calc(var(--dbc-font-size) * 2);
  font-weight: bold;
  line-height: var(--dbc-font-size);
}

.dbc-table-container {
  border: var(--dbc-border-size) solid var(--dbc-color-main);
  border-radius: var(--dbc-border-radius);
}

.dbc-table,
.dbc-mini-table {
  border-collapse: collapse;
  table-layout: fixed;
}

.dbc-mini-table-can {
  border-collapse: collapse;
  table-layout: fixed;
}
.dbc-table {
  text-align: left;
}

.dbc-mini-table {
  margin: var(--dbc-spacing) calc(var(--dbc-spacing) * 2);
  text-align: center;
}
.dbc-mini-table-can {
  margin: var(--dbc-spacing) calc(var(--dbc-spacing) * 2);
  text-align: center;
}

.dbc-table thead,
.dbc-table tbody {
  padding: calc(var(--dbc-spacing) * 0.5) var(--dbc-spacing);
}

.dbc-mini-table thead,
.dbc-mini-table tbody {
  padding: calc(var(--dbc-spacing) * 0.25) calc(var(--dbc-spacing) * 0.5);
}

.dbc-mini-table-can thead,
.dbc-mini-table-can tbody {
  padding: calc(var(--dbc-spacing) * 0.25) calc(var(--dbc-spacing) * 0.5);
}

.dbc-table thead {
  background-color: var(--dbc-color-bg);
  border-bottom: var(--dbc-border-size) solid var(--dbc-color-faded);
  display: block;
  position: sticky;
  top: 0;
  z-index: 2;
}

.dbc-mini-table thead {
  border-bottom: var(--dbc-border-size) solid var(--dbc-color-text);
}

.dbc-mini-table-can thead {
  border-bottom: var(--dbc-border-size) solid var(--dbc-color-text);
}

.dbc-table tbody {
  display: block;
  position: relative;
  z-index: 1;
}

.dbc-table tr {
  display: table;
  table-layout: fixed;
  width: 100%;
}

.dbc-table tbody tr {
  border-bottom: var(--dbc-border-size) solid var(--dbc-color-faded-light);
}

#dbc-can-messages-table tr:not([data-has-errors]) > :nth-child(1),
#dbc-can-signals-table tr:not([data-has-errors]) > :nth-child(1) {
  visibility: hidden;
}

#dbc-can-signals-table:not([data-multiplexing-group]) tr > :nth-child(7),
#dbc-can-signals-table:not([data-multiplexing-group]) tr > :nth-child(8) {
  display: none;
}

#dbc-can-messages-table tr > *,
#dbc-can-signals-table tr > * {
  width: 75px;
}

#dbc-can-messages-table tr > :nth-child(1),
#dbc-can-signals-table tr > :nth-child(1) {
  width: 4px;
  color: var(--dbc-color-error);
}

#dbc-can-messages-table tr > :nth-child(2),
#dbc-can-signals-table tr > :nth-child(2) {
  width: 13px;
}

#dbc-can-messages-table tr > :nth-child(3),
#dbc-can-messages-table tr > :nth-child(4),
#dbc-can-signals-table tr > :nth-child(3) {
  width: 100px;
}

#dbc-can-messages-table tr > :nth-child(5),
#dbc-can-messages-table tr > :nth-child(7),
#dbc-can-signals-table tr > :nth-child(16) {
  width: 283.5px;
}

#dbc-can-signals-table tr > :nth-child(7),
#dbc-can-signals-table tr > :nth-child(8) {
  width: 104.5px;
}

#dbc-can-signals-table tr > :nth-child(9),
#dbc-can-signals-table tr > :nth-child(10) {
  width: 60px;
}

#dbc-can-signals-table tr > :nth-child(15) {
  width: 51px;
}

#dbc-bit-indices-table tr > *,
#dbc-can-frame-table tr > *,
#dbc-signal-mask-table tr > * {
  width: 19px;
}

#dbc-can-frame-table tr > :nth-child(2),
#dbc-can-frame-table tr > :nth-child(3) {
  width: 100px;
}

#dbc-signal-mask-table tr > :nth-child(9),
#dbc-bit-indices-table tr > :first-child {
  display: none;
}

#dbc-can-frame-table tbody tr > :nth-child(2),
#dbc-can-frame-table tbody tr > :nth-child(3) {
  border: var(--dbc-border-size) solid;
  cursor: pointer;
}

.dbc-table th {
  padding: calc(var(--dbc-spacing) * 0.25) calc(var(--dbc-spacing) * 0.5);
  position: relative;
  color: var(--dbc-color-text);
}

.dbc-mini-table th {
  padding: calc(var(--dbc-spacing) * 0.25) calc(var(--dbc-spacing) * 0.125);
  color: var(--dbc-color-text);
}

.dbc-mini-table-can th {
  padding: calc(var(--dbc-spacing) * 0.25) calc(var(--dbc-spacing) * 0.125);
  color: var(--dbc-color-text);
}

.dbc-table td {
  padding: calc(var(--dbc-spacing) * 0.125) calc(var(--dbc-spacing) * 0.5);
  position: relative;
  color: var(--dbc-color-text);
}

.dbc-mini-table td {
  padding: calc(var(--dbc-spacing) * 0.125) calc(var(--dbc-spacing) * 0.125);
  font-size: 10px;
  position: relative;
  color: var(--dbc-color-text);
}

.dbc-mini-table-can td {
  padding: calc(var(--dbc-spacing) * 0.125) calc(var(--dbc-spacing) * 0.125);
  position: relative;
  color: var(--dbc-color-text);
}

.dbc-table tr.dbc-selected td,
.dbc-table tr.dbc-selected .dbc-input {
  background-color: var(--dbc-color-faded-light);
}

.dbc-mini-table tbody tr:first-child td {
  font-weight: bold;
}

.dbc-mini-table-can tr.dbc-selected td {
  background-color: var(--dbc-color-faded-light);
}

.dbc-mini-table-can tbody tr td:first-child {
  font-size: 10px;
  font-weight: bold;
}

.dbc-mini-table-can tbody tr:first-child td {
  font-weight: bold;
}

.dbc-input[disabled],
.dbc-select[disabled] {
  background-color: var(--dbc-color-faded-light);
  border: none;
  color: var(--dbc-color-faded);
}

.dbc-input,
.dbc-select {
  background-color: transparent;
  border: none;
  border-radius: var(--dbc-border-radius);
  color: var(--dbc-color-text);
  font-family: inherit;
  font-size: inherit;
  outline: none;
  padding: 0;
  width: 100%;
}

.dbc-radio,
.dbc-select {
  cursor: pointer;
}

.dbc-input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dbc-input:invalid {
  background-color: var(--dbc-color-input-invalid);
}

.dbc-table td .dbc-select {
  padding: calc(var(--dbc-spacing) * 0.125) calc(var(--dbc-spacing) * 0.5);
  width: calc(100% + var(--dbc-spacing));
  margin: calc(-1 * var(--dbc-spacing) * 0.125) calc(-1 * var(--dbc-spacing) * 0.5);
}

.dbc-radio-container {
  text-align: center;
}

.dbc-radio {
  height: var(--dbc-radio-size);
  width: var(--dbc-radio-size);
  border-radius: 50%;
  border: var(--dbc-border-size) solid var(--dbc-color-faded);
  display: inline-block;
  position: relative;
}

.dbc-table tr.dbc-selected .dbc-radio,
.dbc-radio.dbc-selected {
  background-color: var(--dbc-color-main);
  border-color: var(--dbc-color-main);
}

.dbc-mini-table-can tr.dbc-selected .dbc-radio,
.dbc-mini-table-can .dbc-radio.dbc-selected {
  background-color: var(--dbc-color-main);
  border-color: var(--dbc-color-main);
}

.dbc-collapsible-header {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  margin-top: calc(var(--dbc-spacing) * 2);
  padding: var(--dbc-spacing) 0;
}

.dbc-collapse-button {
  border: 6px solid transparent;
  border-top-color: currentColor;
  height: 0;
  width: 0;
}

.dbc-collapse-button.dbc-collapsed {
  border-left-color: currentColor;
  border-top-color: transparent;
}

.dbc-collapse-button.dbc-collapsed:hover:after,
.dbc-collapse-button:hover:after {
  background-color: var(--dbc-color-faded-light);
}

#dbc-can-signal-preview .dbc-scrollable {
  padding: 0 calc(var(--dbc-spacing) * 2);
}

.dbc-collapsible-area {
  border: var(--dbc-border-size) solid var(--dbc-color-main);
  border-radius: var(--dbc-border-radius);
}

#dbc-byte-number-container {
  position: relative;
  border: var(--dbc-border-size) solid var(--dbc-color-text);
  border-top-left-radius: var(--dbc-border-radius);
  border-top-right-radius: var(--dbc-border-radius);
  margin: var(--dbc-spacing) calc(var(--dbc-spacing) * 2);
  font-size: 16px;
  text-align: center;
  background-color: var(--dbc-color-faded-light);
}

#dbc-byte-number {
  padding: calc(var(--dbc-spacing) * 0.5) var(--dbc-spacing);
  font-weight: bold;
}

#dbc-bit-indices-table {
  margin-top: 0;
  border-top: 0;
  font-size: 16px;
  min-width: 400px;
}

#dbc-bit-indices-table th:first-child {
  display: none;
}

#dbc-bit-indices-table td:first-child {
  font-weight: bold;
  background-color: var(--dbc-color-faded-light);
  border-right: var(--dbc-border-size) solid var(--dbc-color-text);
  font-size: 16px;
  padding: 5px;
}

#dbc-can-frame-table {
  margin-top: 0;
  border-top: 0;
  font-size: 16px;
  min-width: 600px;
}

#dbc-can-frame-table th:first-child {
  display: none;
}

#dbc-signal-mask-table {
  margin-bottom: 0;
  border-bottom: 0;
  font-size: 16px;
  min-width: 400px;
}

#dbc-result-container,
#dbc-result-container > * {
  line-height: calc(var(--dbc-font-size) * 1.75);
}

#dbc-result-container {
  padding: var(--dbc-spacing) calc(var(--dbc-spacing) * 2);
}

#dbc-preview-container .dbc-scrollable {
  padding: var(--dbc-spacing) calc(var(--dbc-spacing) * 2);
}

.dbc-v-line {
  height: var(--dbc-border-size);
  background-color: var(--dbc-color-text);
  margin: 0 calc(var(--dbc-spacing) * 2);
}

.dbc-scrollable-container {
  position: relative;
}

.dbc-h-scroll-line {
  background-color: var(--dbc-color-main);
  bottom: 0;
  height: var(--dbc-border-size);
  left: 0;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.dbc-scrollable-container.dbc-hv-scroll .dbc-h-scroll-line {
  right: calc(var(--dbc-border-size) * 8);
}

.dbc-v-scroll-line {
  background-color: var(--dbc-color-main);
  bottom: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: var(--dbc-border-size);
  z-index: 3;
}

.dbc-scrollable-container.dbc-hv-scroll .dbc-v-scroll-line {
  bottom: calc(var(--dbc-border-size) * 8);
}

.dbc-scrollable {
  overflow: auto;
  position: relative;
}

.dbc-scrollable-container.dbc-h-scroll .dbc-scrollable {
  overflow-x: auto;
  overflow-y: hidden;
}

.dbc-scrollable-container.dbc-v-scroll .dbc-scrollable {
  overflow-x: hidden;
  overflow-y: auto;
}

.dbc-scrollable-container.dbc-hv-scroll .dbc-scrollable {
  overflow-x: auto;
  overflow-y: auto;
}

.dbc-scrollable::-webkit-scrollbar {
  height: calc(var(--dbc-border-size) * 8);
  width: calc(var(--dbc-border-size) * 8);
}

.dbc-scrollable::-webkit-scrollbar-track {
  background-color: var(--dbc-color-faded-light);
  border-radius: var(--dbc-border-radius);
}

.dbc-scrollable::-webkit-scrollbar-thumb {
  background-color: var(--dbc-color-main);
  border-radius: var(--dbc-border-radius);
}

.dbc-scrollable::-webkit-scrollbar-thumb:hover {
  background-color: var(--dbc-color-main-light);
}

#dbc-can-messages-container .dbc-scrollable {
  height: var(--dbc-can-messages-table-height);
}

#dbc-can-signals-container .dbc-scrollable {
  height: var(--dbc-can-signals-table-height);
}

#dbc-can-signal-preview .dbc-scrollable {
  height: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px;
}

#dbc-modal-backdrop {
  align-items: center;
  backdrop-filter: blur(2px);
  background-color: rgba(0, 0, 0, 0.25);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 0.1s ease, visibility 0.1s ease;
  z-index: 10;
}

#dbc-modal {
  background-color: var(--dbc-color-bg);
  border: var(--dbc-border-size) solid var(--dbc-color-main);
  border-radius: var(--dbc-border-radius);
  max-height: 75vh;
  max-width: 75vw;
  overflow: auto;
  position: relative;
}

#dbc-modal-content {
  padding: calc(var(--dbc-spacing) * 2);
  padding-top: calc(var(--dbc-spacing) * 4);
}

#dbc-modal-close {
  color: var(--dbc-color-faded);
  cursor: pointer;
  font-size: calc(var(--dbc-font-size) * 2);
  position: absolute;
  right: calc(var(--dbc-spacing) * 1.5);
  top: calc(var(--dbc-spacing) * 1.5);
}

.dbc-multiplexor-options > :not(:last-child) {
  margin-bottom: var(--dbc-spacing);
}

.dbc-multiplexor-option {
  cursor: pointer;
  padding: calc(var(--dbc-spacing) * 0.5);
}

.dbc-multiplexor-option.dbc-selected,
.dbc-multiplexor-option:hover {
  background-color: var(--dbc-color-faded-light);
  border-radius: var(--dbc-border-radius);
}

.d2h-files-diff {
  font-family: "JetBrains Mono", Arial, Helvetica, sans-serif;
  font-size: var(--dbc-font-size);
  margin-top: var(--dbc-spacing);
  max-width: 50vw;
}

.d2h-code-wrapper {
  position: relative;
}

.d2h-d-none {
  display: none !important;
}

.d2h-wrapper {
  text-align: left;
}

.d2h-file-header {
  background-color: var(--dbc-color-faded-light);
  border-bottom: var(--dbc-border-size) solid var(--dbc-color-faded-medium);
  font-family: "JetBrains Mono", Arial, Helvetica, sans-serif;
  height: 35px;
  padding: 5px 10px;
}

.d2h-file-header,
.d2h-file-stats {
  display: flex;
  align-items: center;
}

.d2h-file-stats {
  margin-left: auto;
}

.d2h-lines-added {
  background-color: #b4e7ce;
  border-radius: 5px;
  color: #399a54;
  margin-left: 5px;
  padding: 2px 6px;
  text-align: center;
  vertical-align: middle;
}

.d2h-lines-deleted {
  background-color: #f8d4da;
  border-radius: 5px;
  color: #c33e3e;
  margin-left: 5px;
  padding: 2px 6px;
  text-align: center;
  vertical-align: middle;
}

.d2h-file-name-wrapper {
  align-items: center;
  display: flex;
  font-family: "JetBrains Mono", Arial, Helvetica, sans-serif;
  font-size: 15px;
  margin: 0;
  margin-right: 10px;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d2h-file-name {
  white-space: nowrap;
}

.d2h-file-wrapper {
  border: var(--dbc-border-size) solid var(--dbc-color-faded-medium);
  border-radius: var(--dbc-border-radius);
  margin-bottom: 1em;
}

.d2h-file-collapse {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  font-size: 12px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
}

.d2h-file-collapse.d2h-selected {
  transform: translateY(-50%) rotate(90deg);
}

.d2h-file-collapse-input {
  display: none;
}

.d2h-diff-table {
  border-collapse: collapse;
  font-family: "JetBrains Mono", Arial, Helvetica, sans-serif;
  font-size: var(--dbc-font-size);
  width: 100%;
}

.d2h-files-diff {
  display: block;
}

.d2h-file-diff {
  overflow-y: hidden;
}

.d2h-file-side-diff {
  display: inline-block;
  overflow-x: scroll;
  overflow-y: hidden;
  width: 50%;
  margin-right: -4px;
  margin-bottom: -8px;
}

.d2h-code-line {
  display: inline-block;
  white-space: nowrap;
  width: 100%;
}

.d2h-code-line,
.d2h-code-line * {
  font-family: "JetBrains Mono", Arial, Helvetica, sans-serif !important;
  font-size: var(--dbc-font-size) !important;
}

.d2h-code-side-line {
  display: inline-block;
  white-space: nowrap;
}

.d2h-code-line-ctn {
  word-wrap: normal;
  background: none;
  border: none;
  color: inherit;
  cursor: text;
  display: inline;
  font: inherit;
  height: auto;
  letter-spacing: normal;
  margin: 0;
  overflow: visible;
  padding: 0;
  quotes: none;
  text-align: left;
  text-decoration: none;
  text-indent: 0;
  text-shadow: none;
  vertical-align: baseline;
  white-space: pre;
  word-spacing: normal;
}

.d2h-code-line del,
.d2h-code-line ins {
  display: inline;
}

.d2h-code-line del,
.d2h-code-line ins,
.d2h-code-line del *,
.d2h-code-line ins * {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
}

.d2h-code-line ins,
.d2h-code-line ins * {
  background-color: #b4e7ce !important;
  color: #399a54 !important;
}

.d2h-code-line-prefix {
  word-wrap: normal;
  background: none;
  border: none;
  color: inherit;
  cursor: default;
  display: inline;
  float: none;
  font: inherit;
  height: auto;
  letter-spacing: normal;
  margin: 0;
  max-height: none;
  max-width: none;
  min-height: 0;
  min-width: 0;
  overflow: visible;
  padding: 0;
  position: static;
  quotes: none;
  text-align: left;
  text-decoration: none;
  text-indent: 0;
  text-shadow: none;
  vertical-align: baseline;
  white-space: pre;
  word-spacing: normal;
}

.line-num1 {
  box-sizing: border-box;
}

.line-num1,
.line-num2 {
  background-color: var(--dbc-color-faded-light);
  border: solid var(--dbc-color-faded-medium);
  border-width: 0 var(--dbc-border-size) 0 0;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: block;
  float: left;
  font-weight: normal;
  height: 20px;
  line-height: 20px;
  margin: 0;
  padding: 0 8px;
  text-align: right;
  user-select: none;
  width: 56px;
}

.line-num2 {
  border-width: 0 var(--dbc-border-size) 0 0;
}

.d2h-code-linenumber {
  background-color: var(--dbc-color-faded-light);
  border: solid var(--dbc-color-faded-medium);
  border-width: 0 var(--dbc-border-size) 0 0;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: inline-block;
  font-weight: normal;
  height: 20px;
  line-height: 20px;
  margin: 0;
  padding: 0 8px;
  text-align: right;
  user-select: none;
  vertical-align: top;
  width: 56px;
}

.d2h-code-linenumber:after {
  content: "\200b";
}

.d2h-code-side-linenumber {
  background-color: var(--dbc-color-faded-light);
  border: solid var(--dbc-color-faded-medium);
  border-width: 0 var(--dbc-border-size) 0 0;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: inline-block;
  font-weight: normal;
  height: 20px;
  line-height: 20px;
  margin: 0;
  overflow: hidden;
  padding: 0 8px;
  text-align: right;
  text-overflow: ellipsis;
  user-select: none;
  vertical-align: top;
  white-space: nowrap;
  width: 56px;
}

.d2h-code-side-linenumber:after {
  content: "\200b";
}

.d2h-code-side-emptyplaceholder,
.d2h-emptyplaceholder {
  background-color: var(--dbc-color-faded-light);
  border: solid var(--dbc-color-faded-medium) var(--dbc-border-size);
  border-width: 0 var(--dbc-border-size) 0 0;
}

.d2h-code-line-prefix,
.d2h-code-line-suffix {
  background: none !important;
  border: none !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.d2h-code-linenumber,
.d2h-code-side-linenumber {
  direction: rtl;
}

.d2h-del {
  background-color: #f8d4da;
  border-color: #f1aeb5;
  color: #b02a37;
}

.d2h-ins {
  background-color: #b4e7ce;
  border-color: #85e89d;
  color: #22863a;
}

.d2h-info {
  background-color: #d1ecf1;
  border-color: #b8daff;
  color: #31708f;
}

.d2h-file-diff .d2h-del.d2h-change {
  background-color: #ffeef0;
}

.d2h-file-diff .d2h-ins.d2h-change {
  background-color: #e6ffed;
}

.d2h-file-list-wrapper {
  margin-bottom: 10px;
}

.d2h-file-list-wrapper a {
  text-decoration: none;
  color: #3572b0;
}

.d2h-file-list-wrapper a:visited {
  color: #3572b0;
}

.d2h-file-list-header {
  text-align: left;
}

.d2h-file-list-title {
  font-weight: bold;
}

.d2h-file-list-line {
  display: flex;
  text-align: left;
}

.d2h-file-list {
  display: block;
  list-style: none;
  padding: 0;
  margin: 0;
}

.d2h-file-list > li {
  border-bottom: #ddd solid var(--dbc-border-size);
  padding: 5px 10px;
  margin: 0;
}

.d2h-file-list > li:last-child {
  border-bottom: none;
}

.d2h-file-switch {
  display: none;
  font-weight: bold;
}

.d2h-icon {
  vertical-align: middle;
  margin-right: 10px;
  fill: currentColor;
}

.d2h-deleted {
  color: #c33e3e;
}

.d2h-added {
  color: #399a54;
}

.d2h-changed {
  color: #d0b44c;
}

.d2h-moved {
  color: #3572b0;
}

.d2h-tag {
  background-color: var(--dbc-color-faded-light);
  border-radius: 3px;
  color: var(--dbc-color-text);
  font-size: 10px;
  font-weight: bold;
  margin-left: 5px;
  padding: 1px 4px;
  text-transform: uppercase;
}

.d2h-deleted-tag {
  background-color: #f8d4da;
  color: #c33e3e;
}

.d2h-added-tag {
  background-color: #b4e7ce;
  color: #399a54;
}

.d2h-changed-tag {
  background-color: #fff3cd;
  color: #d0b44c;
}

.d2h-moved-tag {
  background-color: #d1ecf1;
  color: #3572b0;
}

/* VSCode 主题特定优化 - 确保文字在所有主题下都清晰可见 */
body.vscode-dark .dbc-table th,
body.vscode-dark .dbc-table td,
body.vscode-dark .dbc-mini-table th,
body.vscode-dark .dbc-mini-table td,
body.vscode-dark .dbc-mini-table-can th,
body.vscode-dark .dbc-mini-table-can td,
body.vscode-dark .dbc-input,
body.vscode-dark .dbc-select {
  color: var(--vscode-editor-foreground, #cccccc) !important;
}

body.vscode-light .dbc-table th,
body.vscode-light .dbc-table td,
body.vscode-light .dbc-mini-table th,
body.vscode-light .dbc-mini-table td,
body.vscode-light .dbc-mini-table-can th,
body.vscode-light .dbc-mini-table-can td,
body.vscode-light .dbc-input,
body.vscode-light .dbc-select {
  color: var(--vscode-editor-foreground, #333333) !important;
}

/* 确保高对比度模式下的可读性 */
body.vscode-high-contrast .dbc-table th,
body.vscode-high-contrast .dbc-table td,
body.vscode-high-contrast .dbc-mini-table th,
body.vscode-high-contrast .dbc-mini-table td,
body.vscode-high-contrast .dbc-mini-table-can th,
body.vscode-high-contrast .dbc-mini-table-can td,
body.vscode-high-contrast .dbc-input,
body.vscode-high-contrast .dbc-select {
  color: var(--vscode-editor-foreground, #ffffff) !important;
}

/* 通用文字颜色强制规则 - 确保在任何情况下都可见 */
.dbc-table th,
.dbc-table td,
.dbc-mini-table th,
.dbc-mini-table td,
.dbc-mini-table-can th,
.dbc-mini-table-can td {
  color: var(--dbc-color-text) !important;
}

.dbc-input,
.dbc-select {
  color: var(--dbc-color-text) !important;
  background-color: transparent !important;
}

/* 选中行的文字颜色优化 */
.dbc-table tr.dbc-selected td,
.dbc-table tr.dbc-selected .dbc-input,
.dbc-table tr.dbc-selected .dbc-select {
  color: var(--dbc-color-text) !important;
}

/* 输入框焦点状态 */
.dbc-input:focus,
.dbc-select:focus {
  background-color: var(--vscode-inputOption-activeForeground, rgba(0, 122, 204, 0.1)) !important;
  color: var(--dbc-color-text) !important;
  outline: 1px solid var(--dbc-color-main) !important;
}

/* 禁用状态的文字颜色 */
.dbc-input[disabled],
.dbc-select[disabled] {
  color: var(--dbc-color-faded) !important;
  opacity: 0.6;
}

/* 确保预览区域文字可见 */
#dbc-preview,
#dbc-result-container {
  color: var(--dbc-color-text) !important;
}

/* 标题文字颜色 */
.dbc-table-header-name,
.dbc-collapsible-header {
  color: var(--dbc-color-main) !important;
}

.dbc-mini-table th, .dbc-mini-table-can th {
  font-weight: bold;
  padding: 5px 10px;
  font-size: 16px;
}

.dbc-mini-table td, .dbc-mini-table-can td {
  font-weight: normal;
  padding: 5px 10px;
  font-size: 16px;
}

.dbc-preview-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  width: 100%;
}

.dbc-preview-column {
  flex: 0 0 auto;
} 